<!DOCTYPE html>
<html>
<head>
    <title>订单商品评论</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <!--<i-input v-model="q.name" @on-enter="query" placeholder="名称"/>-->
                    <!--<i-option v-for="item in merchants" :value="item.merchantId">{{ item.merchantName }}</i-option>-->
                    <i-select  v-model="q.merchantId" placeholder="商户名称" @on-change="queryProductList"C>
                        <i-option v-for="item in merchantList" :value="item.mid" >{{ item.name }}</i-option>
                    </i-select>

                </i-col>
                <i-col span="4">
                    <i-select  v-model="q.proId" placeholder="产品名称">
                        <i-option v-for="item in productList" :value="item.id" >{{ item.name }}</i-option>
                    </i-select>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                <!--#if($shiro.hasPermission("tordercomment:info"))-->
                <!--<i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>-->
                <!--#end-->
                <!--#if($shiro.hasPermission("tordercomment:save"))-->
                <!--<i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>-->
                <!--#end-->
                <!--#if($shiro.hasPermission("tordercomment:update"))-->
                <!--<i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>-->
                <!--#end-->
                <!--#if($shiro.hasPermission("tordercomment:delete"))-->
                <!--<i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>-->
                <!--#end-->
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;隐藏</i-button>
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="tOrderComment" :rules="ruleValidate" :label-width="80">
            <!--<Form-item label="订单编号" prop="orderNo">-->
                <!--<i-input v-model="tOrderComment.orderNo" placeholder="订单编号"/>-->
            <!--</Form-item>-->
            <Form-item label="用户名称" prop="nickname">
                <i-input v-model="tOrderComment.nickname" placeholder="用户名称"/>
            </Form-item>
            <!--<Form-item label="商品编号" prop="proId">-->
                <!--<i-input v-model="tOrderComment.proId" placeholder="商品编号"/>-->
            <!--</Form-item>-->
            <Form-item label="商品名称" prop="proName">
                <i-input v-model="tOrderComment.proName" placeholder="商品名称"/>
            </Form-item>
            <Form-item label="商品图片" prop="proUrl">
                <i-input v-model="tOrderComment.proUrl" placeholder="商品图片"/>
            </Form-item>
            <!--<Form-item label="款式编号" prop="styleId">-->
                <!--<i-input v-model="tOrderComment.styleId" placeholder="款式编号"/>-->
            <!--</Form-item>-->
            <Form-item label="款式名称" prop="styleName">
                <i-input v-model="tOrderComment.styleName" placeholder="款式名称"/>
            </Form-item>
            <Form-item label="款式图片" prop="styleUrl">
                <i-input v-model="tOrderComment.styleUrl" placeholder="款式图片"/>
            </Form-item>
            <!--<Form-item label="数量" prop="number">-->
                <!--<i-input v-model="tOrderComment.number" placeholder="数量"/>-->
            <!--</Form-item>-->
            <!--<Form-item label="价格" prop="price">-->
                <!--<i-input v-model="tOrderComment.price" placeholder="价格"/>-->
            <!--</Form-item>-->

            <Form-item label="评论内容" prop="content">
                <i-input v-model="tOrderComment.content" placeholder="评论内容"/>
            </Form-item>
            <Form-item label="评论图片" prop="imgs">
                <!--<i-input v-model="tOrderComment.commentImg" placeholder="评论图片"/>-->
                <img  v-for="item in tOrderComment.imgs" :src="item"/>
            </Form-item>
            <!--<Form-item label="0关闭1启用" prop="statu">-->
                <!--<i-input v-model="tOrderComment.statu" placeholder="0关闭1启用"/>-->
            <!--</Form-item>-->
            <!--<Form-item label="创建时间" prop="createDate">-->
                <!--<i-input v-model="tOrderComment.createDate" placeholder="创建时间"/>-->
            <!--</Form-item>-->
            <Form-item>
                <!--<i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>-->
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <!--<i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>-->
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/product/tordercomment.js?_${date.systemTime}"></script>
</body>
</html>